package cn.org.timespace.easyframe.util.sms.telecom;

import cn.org.timespace.easyframe.util.sms.mobiles.AbstractMessage;
import cn.org.timespace.easyframe.util.sms.mobiles.CMobileClient;
import cn.org.timespace.easyframe.util.sms.mobiles.IMessageStatus;

import com.jasson.im.api.MOItem;
import com.jasson.im.api.RPTItem;

/**
 * �ƶ� ���� �ӿ� ������
 * */
public class MobileDemo implements IMessageStatus {

	public static void main(String[] args) {
		AbstractMessage msg = AbstractMessage.onCreate(false);
		msg.setSmID(12345);
		msg.setTmpContent("���,�����ǹ�������,�յ����žͻ�һ����");
		msg.setTmpSrcID("10");
		msg.setTmpMobile(new String[] { "15826639958,13085114416" });
		/*
		 * String mobile = "15826639958,13085114416"; String content =
		 * "���,�����ǹ�������,�յ����žͻ�һ����"; String result =
		 * SmsManager.sendSmsManager(mobile, content);
		 * System.out.println("result:"+result);
		 */
		CMobileClient client = new CMobileClient();
		client.init();
		int result = client.sendSM(msg);
		System.out.println("result:" + result);

		//		

	}

	public void Deliver(MOItem[] mo) {
		// TODO Auto-generated method stub

	}

	public void DeliverReport(RPTItem[] rpt) {
		// TODO Auto-generated method stub

	}

	public void SeneMessage(int status, AbstractMessage msg) {
		// TODO Auto-generated method stub

	}

}
